package com.alibaba.algo.components.yapi.service;

import java.io.IOException;
import java.util.List;

import com.alibaba.algo.components.yapi.entity.CatMenu;
import com.alibaba.algo.components.yapi.entity.InterfaceInfo;
import com.alibaba.algo.components.yapi.entity.Project;
import com.alibaba.algo.components.yapi.vo.InterfaceRequestVO;

/**
 * @Description: yapi服务接口
 * @author: malin
 * @date: 2020-12-1 11:20:08
 */
public interface YapiOpenService {

	/**
	 * @Description: 获取项目详情
	 * @author: malin
	 * @date: 2020-12-1 17:32:01
	 */
	public Project get();

	/**
	 * @Description: 获取菜单列表
	 * @author: malin
	 * @date: 2020-12-1 15:03:51
	 */
	public List<CatMenu> getCatMenu();

	/**
	 * @Description: 新增菜单
	 * @param desc      菜单描述
	 * @param name      菜单名称
	 * @param projectId 项目标识
	 * @author: malin
	 * @date: 2020-12-1 15:27:41
	 */
	public Integer addCat(String desc, String name, Integer projectId);

	/**
	 * @Description: 获取接口列表
	 * @author: malin
	 * @date: 2020-12-1 15:50:02
	 */
	public List<InterfaceInfo> list();

	/**
	 * @Description: 新增或者更新接口
	 * @author: malin
	 * @date: 2020-12-1 16:45:38
	 */
	public boolean save(InterfaceRequestVO interfaceRequestVO);

	void initData();
}
